using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    public class Magazine : Reading
    {
        private string dateReleased;

        public Magazine(string idNum, string title, string author, bool eCopy, DepartmentsName departmentLocation, string dateRel)
            : base(title, author, idNum, eCopy, departmentLocation)
        {
            this.DateReleased = dateRel;
        }

        public Magazine(string idNum, string title, string author, bool eCopy, DepartmentsName departmentLocation, string dateRel, PeriodicalsInfo info)
            : this(title, author, idNum, eCopy, departmentLocation, dateRel)
        {
            this.Info = info;
        }

        public string DateReleased
        {
            get
            {
                return this.dateReleased;
            }
            set
            {
                this.dateReleased = value;
            }
        }

        public PeriodicalsInfo Info { get; set; }
    }
}
